import 'package:library_base/entities/generated/json/base/json_field.dart';
import 'package:library_base/entities/generated/json/print_single_entry_details_entity.g.dart';
import 'dart:convert';

import 'generated/json/print_detail_entity.g.dart';

@JsonSerializable()
class PrintSingleEntryDetailsEntity {

  late String goodsBarCode;
  late String goodsName;
  late double mainWeight;
  late double subWeight;
  
  PrintSingleEntryDetailsEntity();

  factory PrintSingleEntryDetailsEntity.fromJson(Map<String, dynamic> json) => $PrintSingleEntryDetailsEntityFromJson(json);

  Map<String, dynamic> toJson() => $PrintSingleEntryDetailsEntityToJson(this);

  @override
  String toString() => json.encode(this);
}


